// pages/library/bookQuery/bookInfo/bookInfo.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    // 书本数据
    bookItemInfo: {},
    // 是否收藏
    isCollection: false,
    activeNames: [],
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    this.getBookInfo()
  },

  getBookInfo(){
    var that = this
    var bookItemInfo = (wx.getStorageSync('bookItemInfo') || {})
    that.setData({
      bookItemInfo
    })
    console.log(that.data.bookItemInfo)
  },

  onChange(event) {
    this.setData({
      activeNames: event.detail,
    });
  }
})